﻿CREATE TRIGGER wfStepInstances_Tracking_Delete
ON [dbo].[wfStepInstances] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.wfStepInstances_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.wfStepInstances_Tracking s JOIN DELETED i
    ON s.StepInstanceID = i.StepInstanceID
END











